package com.zkbs.controller;

import com.alibaba.fastjson.JSONObject;
import com.zkbs.service.ZxsK3Service;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Resource
    ZxsK3Service zxsK3Service;

    @GetMapping("/select")
    public JSONObject select() throws Exception {
        String formid="SAL_SaleOrder";
        String content="{\"Number\":\"XSLYA2023112414302711\"}";
        JSONObject s=zxsK3Service.view(formid,content);
        System.out.println(s);
        return s;
    }
}
